<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>网站后台管理系统</title>
<meta name="keywords" content="">
<meta name="description" content="">
<!--[if lte IE 6]>
<link rel="stylesheet" type="text/css" href="css/ie6.css"/>
<![endif]-->
<link rel="stylesheet" type="text/css"  href="../../../../public/layui/css/layui.css">
<link href="../../../../public/admin/css/style_v2.0.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" type="text/css" href="__PUBLIC__/layui/css/layui.css">
<link rel="stylesheet" type="text/css" href="__PUBLIC__/admin/css/style_v2.0.css" />
<script type="text/javascript" src="__PUBLIC__/js/jquery-1.8.3.min.js"></script>
<script type="text/javascript" src="__PUBLIC__/layui/layui.js"></script>
</head>
<body>
<div class="position mt10">当前位置：<a href="{:U('Index/main')}">后台首页</a>  > <a href="{:U('User/admin_list')}">管理员列表</a> </div>
<div id="container">
<fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
  <legend>管理员信息</legend>
</fieldset>
<div class="layui-form" style="background-color:#FFFFFF;">
	<table class="layui-table" id="table">
    <thead>
    <tr style="text-align:center;">
      <th style="text-align:center;"></th>
      <th style="text-align:center;">编号</th>
      <th style="text-align:center;">名称</th>
      <th style="text-align:center;">权限</th>
      <th style="text-align:center;">加入时间</th>
      <th style="text-align:center;">操作</th>
    </tr> 
    </thead>
    <form id="form2" name="form2" method="post" action="{:U('Admin/User/admin_deladmin/')}">  
     <volist name="admin_list" id="row">
    <tr>
      <td align="center" class="layui-form-item"><input type="checkbox" id="id[]" title=""  name="id[]" lay-skin="primary" value="{$row.id}" /></td>
      <td align="center" height="22px">{$row.id}</td>
      <td  height="21px">
        <a href="{:U('Admin/User/admin_edit/',array('id' => $row['id']))}">{$row.username}</a>
       </td>
      <td> <if condition="$row.admintype eq 0"><font color="#FF0000">超级管理员</font><elseif condition="$row.admintype eq 1" />普通管理员<else />业务员</if></td>
      <td>{$row.addtime|date='Y-m-d',###}</td>
      <td align="center">
    <div class="layui-btn-group">
    <a href="{:U('Admin/User/admin_edit/',array('id' => $row['id']))}" class="layui-btn layui-btn-small"><i class="layui-icon">&#xe642;</i></a>
    <a href="{:U('Admin/User/admin_deladmin/',array('id' => $row['id']))}" onClick="return checkConfirm('您确认删除记录?')" class="layui-btn layui-btn-danger  layui-btn-small"><i class="layui-icon">&#xe640;</i></a>    </div>    </td>
    </tr>
    </volist>
    <tr>
      <td align="center"><input type="checkbox" name="" lay-skin="primary" lay-filter="allChoose"></td>
      <td colspan="4">
      <div style="padding-left:20px;">  
         <input type="button" value="全选" name="selectall" class="layui-btn" />
         <input type="button" value="反选" name="selectno" class="layui-btn "/>
         <button  name="btnDel" lay-submit="" lay-filter="btnDel" class="layui-btn layui-btn-danger" />删除</button>
      </div>      </td>
      <td align="center">&nbsp;</td>
      </tr>
   </form>
    </table>
</div>
  <div class="c"></div>
    <div id="pages">{$page}</div>
</div>
<script type="text/javascript" src="__PUBLIC__/js/common.js"></script>
</body>
</html>
<script>
//Demo
layui.use(['form','laydate'], function(){
 var form = layui.form
  ,laydate = layui.laydate;
  
  //监听提交
  form.on('submit(btnDel)', function(data){
    //layer.msg(JSON.stringify(data.field));
	title: '最终的提交信息'
	return true;
  });
   
});
</script>
